package com.zhentao.controller;

import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

@Component
public class ConsumerTest {
    @KafkaListener(topics = "topic3")
    public void receiverMsg(String msg){
        System.out.println("接收到消息"+msg);
    }
}
